package com.itcodai.config;

/**
 * @author c-fanqj
 * @date 2023/3/23
 * @apiNote 拦截器
 */
/*
@Component
@Slf4j
public class JwtFilter extends OncePerRequestFilter {

    @Override
    protected void doFilterInternal(HttpServletRequest httpRequest,
                                    HttpServletResponse httpResponse,
                                    FilterChain filterChain)
            throws ServletException, IOException {

        if (httpRequest.getRequestURI().equals("/swagger-ui.html")) {
            filterChain.doFilter(httpRequest, httpResponse);
        }

        if (httpRequest.getRequestURI().contains("swagger")) {
            filterChain.doFilter(httpRequest, httpResponse);

        }

        if (httpRequest.getRequestURI().equals("/v2/api-docs")) {
            filterChain.doFilter(httpRequest, httpResponse);
        }

        if (httpRequest.getRequestURI().startsWith("/webjars")) {
            filterChain.doFilter(httpRequest, httpResponse);
        }
    }

}*/
